<!--
 * @Descripttion: 
 * @LastEditors: xzh
 * @LastEditTime: 2023-11-12 22:41:18
-->
<template>
  <DileDrawer v-model="visible" size="80%" hideFooter>
    <template #header>
      <span>{{ $t(`page.moldManageArr.moldResume`) }}</span>
    </template>
    <template #default>
      <!-- 履历表单 -->
      <ResumeForm ref="resumeFormRef" />
    </template>
  </DileDrawer>
</template>

<script setup lang="ts">
import { ref, reactive, nextTick } from "vue";
import ResumeForm from "../index.vue";
/**
 * @Author: xzh
 * @Descripttion: 履历表单实例
 * @Param:
 */
let resumeFormRef = ref<any>(null);
/**
 * @Author: xzh
 * @Descripttion:
 * @Param:
 */
let visible = ref<boolean>(false);
/**
 * @Author: xzh
 * @Descripttion:初始化加载
 * @Param:
 * @param {*} id 保养计划主键
 */
let init = async (id: number) => {
  visible.value = true;
  await nextTick();
  //加载履历表单
  resumeFormRef.value.init(id);
};

defineExpose({
  init,
});
</script>
<style lang="scss" scoped></style>
